/**
 * @file main.cpp
 * @brief 获得三个相机中最贵的呢一个的价格
 * @author Dao (1033059910@qq.com)
 * @date 2022-07-22
 *
 * @copyright Copyright (C) 2022, HITCRT_VISION, all rights reserved.
 *
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Author  <th>Description
 * <tr><td>2022-07-22 <td>Dao  <td>
 * </table>
 */

#include <iostream>
#include <string>
using namespace std;
/**
 * @brief
 * @return int
 * @author Dao (1033059910@qq.com)
 */
int main() {
    //初始化三款相机价格
    int moneyCameraA = 0;
    int moneyCameraB = 0;
    int moneyCameraC = 0;
    int moneyMax = 0;
    //提示信息
    std::cout << "请输入三款相机的价格" << std::endl;
    //获得三款相机的价格
    while (true) {
        cin >> moneyCameraA;
        cin >> moneyCameraB;
        cin >> moneyCameraC;
        if (moneyCameraA > 0 && moneyCameraB > 0 && moneyCameraC > 0) {
            break;
        }
    }
    //判断得到最大值
    moneyMax = moneyCameraA > moneyCameraB ? moneyCameraA : moneyCameraB;
    moneyMax = moneyMax > moneyCameraC ? moneyMax : moneyCameraC;
    //输出
    std::cout << "相机最贵" << moneyMax << "元" << std::endl;
}